package com.voute.Utils;


import com.voute.Consts.Constants;

import java.util.HashMap;

/**
 * 组合共同参数工具类
 * Created by liukanshan on 2016/12/10.
 */

public class ParamsUtils {
    /**
     * 返回共同参数
     * @return
     */
    public static HashMap<String, String> GetCommonParams() {
        HashMap<String, String> values = new HashMap<>();
        values.put("cid", Constants.CID);
        values.put("timestamp", TimeUtils.GetUnixTimeStamp());
        values.put("client","2");
        values.put("accesskey",MD5Utils.GetMD5Value(Constants.CID+"$$"+Constants.ACCESS_KEY+"&&"+TimeUtils.GetUnixTimeStamp()));
        return values;
    }
}
